import type { FormActionType } from "@/components/Form";

export interface TabItem {
  id: string;
  name: string;
  formInfo?: {
    personName?: string,
    personTel?: string,
    companyName?: string,
    companyPosition?: string,
  } & Recordable
}

export interface SignUpInfoFormRef {
  submit: FormActionType['submit']
  getFieldsValue: FormActionType['getFieldsValue']
}

export interface PersonnelInfoListRef {
  addPerson: (data: TabItem) => void
  getPersonNum: () => number
  setHoldInfo: (list: TabItem[]) => void
  getFieldsValue: () => Promise<Recordable[]>
  clearHoldInfo: () => void
}